<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>添加视频分类</title></head>
  <body>
    <div>
      <div>
        <form action="/cate" method="post" class="form form-horizontal" id="form-user-add">
          <div class="row cl">
            <label class="form‐label col‐xs‐4 col‐sm‐2">
              <span class="c‐red"></span>选择分类：</label>
            <div class="formControls col‐xs‐6 col‐sm‐6">
              <select name="pid" class="span3" style="width:200px">
                <option value="0">顶级分类</option>@foreach($cates as $cate)
                <option value="{{$cate->id}}">
                  <?php echo str_repeat( "&nbsp;",4*$cate->lev);?> {{$cate->name}}</option>@endforeach</select>
            </div>
          </div>
          <div class="row cl">
            <label>
              <span></span>分类名称：</label>
            <div>
              <input type="text" class="input‐text" id="name" name="name" / style="width:200px;height: 40px;"></div>
          </div>
          <div class="row cl">
            <div class="col‐9 col‐offset‐2">
              <br>
              <input class="btn btn‐primary radius" type="submit" value="&nbsp;&nbsp;创建分类&nbsp;&nbsp;" />
            </div>
          </div>
          {{csrf_field()}}
        </form>
      </div>
    </div>
  </body>
</html>